﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Innerpage.master"
    CodeBehind="News.aspx.vb" Inherits="Phila.News" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="plNews" runat="server">
        <h2>
            News</h2>
        <div class="news-list">
            <asp:DataList ID="dlNews" runat="server" RepeatColumns="1" ItemStyle-VerticalAlign="Top" BorderWidth="0">
                <ItemTemplate>
                    <div class="news">
                        <div class="title">
                            <a href='<%# Eval("Id", "News.aspx?id={0}") %>'>
                                <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>' /></a>
                        </div>
                        <div class="date">
                            <asp:Label ID="lblDate" runat="server" Text='<%# DateFormat(Eval("Date")) %>' /></div>
                        <div class="summary">
                            <asp:Label ID="lblSummary" runat="server" Text='<%# Mid(Eval("Description"),1,150) %>' />
                        </div>
                        <div class="viewmore">
                            <a href="<%# Eval("Id", "News.aspx?id={0}") %>">View more</a></div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </asp:Panel>
    <asp:Panel ID="plNewsDetails" runat="server">
        <div class="news-details">
            <asp:Literal ID="ltrNewsDetals" runat="server"></asp:Literal></div>
    </asp:Panel>
</asp:Content>
